<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>{$category['title']}</title>
{php echo register_jssdk(false);}
</head>
<style>
*{
	margin:0; padding:0;
}
body{
	font-size:14px; color:#333; position:relative; background-color:#efefef; 
}
h1,h2,h3,h4,h5,b,u,i,em{
	font-size:14px; font-weight:normal; font-style:normal
}
ul,li,dl,dt,dd,ol{
	list-style-type:none
}
img{
	border:none
}
a,a:hover,a:visited,a:active,a:link{
	text-decoration:none; border:none;
}
a{
	color:#333; outline:none
}

.lists{
	width:100%; margin-bottom:15px; background-color:#fff; border-bottom:1px solid #ddd; border-top:1px solid #ddd;  overflow:hidden;padding-top:20px;
}
.lists-h{
	width:100%; height:50px; line-height:50px; overflow:hidden
}
.lists-h h2{
	float:left; margin-left:10px; font-size:120%;
}
.lists-h a{
	float:right; margin-right:10px;
}
.lists-ul{
	padding-right:10px; overflow:hidden
}
.lists-li{
	width:50%; float:left; margin-bottom:10px; overflow:hidden
}
.lists-a{
	margin-left:10px; display:block
}
.lists-img{
	width:100%; height:100px; float:left; overflow:hidden
}
.lists-tit{
	font-size:14px; line-height:130%; height:40px; padding-top:10px; clear:both; overflow:hidden
}
</style>
<body>


<div class="lists">
<div class="lists-c">
<ul class="lists-ul">
{if !empty($lists) && is_array($lists)}
{loop $lists $val}
<li class="lists-li">
<a href="{if empty($val['open_img'])}{php echo $this->createMobileUrl('detail',array('categoryid'=>$category['id'],'listid'=>$val['id']))}{else}{php echo $this->createMobileUrl('detail_thumb',array('categoryid'=>$category['id'],'listid'=>$val['id']))}{/if}" class="lists-a">
<img src="{php echo tomedia($val['img'])}" class="lists-img" onerror="this.src='{php echo tomedia($val['no_img'])}'">
<p class="lists-tit">{$val['title']}</p>
<div style="position: relative;">
<div style="position: absolute;top:-50px;right:10px;">
<img style="width:50px;height:50px" src="{if TIMESTAMP<$val['start_time']}{MODULE_URL}template/mobile/css/new/no_start.png?t={php echo time()}{elseif TIMESTAMP>$val['end_time']}{MODULE_URL}template/mobile/css/new/stop.png?t={php echo time()}{else}{MODULE_URL}template/mobile/css/new/doing.png?t={php echo time()}{/if}">
</div>
</div>
</a>
</li>
{/loop}
{/if}
</ul>
</div>
</div>
{template 'user_nav'}
<script type="text/javascript" src="http://vip.wx1wx.com/template/default//common/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="http://vip.wx1wx.com/template/default//common/js/swiper.3.1.2.min.js"></script>
<script type="text/javascript" src="http://vip.wx1wx.com/template/default//common/js/jqthumb.min.js"></script>
<script type="text/javascript">
  wx.ready(function () {
  var shareData = {
    title: "{$settings['list_share_title']}",
    desc: "{$settings['list_share_content']}",
    link: "",
    imgUrl: "{php echo tomedia($settings['list_share_img'])}",
  };
  
  //分享朋友
  wx.onMenuShareAppMessage({
       title: shareData.title,
      desc: shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
        send_intergal();
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
 //朋友圈
  wx.onMenuShareTimeline({
      title: shareData.title+"---"+shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
          send_intergal();
      },
      cancel: function (res) {
      },
      fail: function (res) {
        
      }
    });   
    
  });
</script>
</body>
</html>